//
//  AlbumView.h
//  AlbumDemo
//
//  Created by hejinhui on 2018/1/22.
//  Copyright © 2018年 hejinhui. All rights reserved.
//

#import <UIKit/UIKit.h>
@class AlbumView;
@class AlbumItem;

//itemBtn的block
typedef void(^AlbumItemBlock)(AlbumItem *item);

//代理
@protocol AlbumDelegate <NSObject>
/**总个数*/
-(NSInteger)numberOfItemView;
/**显示的列数*/
-(NSInteger)numberOfColumn;
/** return AlbumItem*/
- (AlbumItem *)itemViewForAlbumView:(AlbumView *)itemView  itemForItemAtIndexPath:(NSIndexPath *)indexPath;
@optional
/**点击事件*/
-(void)itemViewDidSelect:(NSInteger)tag itemView:(AlbumItem *)itemView;

@end

@interface AlbumView : UIView

@property(nonatomic,weak)id<AlbumDelegate>albumDelegate;
@property(nonatomic,copy)AlbumItemBlock albumItemBlock;
//刷新
-(void)albumReload;
//获取高度
+(CGRect)getAlbumHeight:(int)numbers column:(int)colunm;
@end
